/**
 * 标签栏目
 */
import * as types from "../type";
const state = {
  /**
   * 菜单是否收缩
   */
  isCollapsed: false
};

const getters = {
  getIsCollapsed: state => {
    return state.isCollapsed;
  }
};

const mutations = {
  [types.SET_COLLAPSED]: (state, status) => {
    state.isCollapsed = status;
  }
};
const actions = {
  setCollapsedStatus: ({ commit }, status) => {
    commit(types.SET_COLLAPSED, status);
  }
};

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions
};
